cmake_minimum_required(VERSION 3.2)
project(test_c)

#显示编译细节
SET(CMAKE_VERBOSE_MAKEFILE ON)

#指定输出路径
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ./bin/)

#添加源文件
#SET(SRC_LIST main.c xxx.c)
#MESSAGE(#{SRC_LIST})
#ADD_EXECUTABLE(test_EXE ${SRC_LIST})
ADD_EXECUTABLE(test_EXE 
main.cpp
network/network.cpp
)

#指定include路径
SET(INCLUDE_DIRECTORIES " ./include")
INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES})

#创建Release和Debug版本
#SET(CMAKE_BUILD_TYPE Release)
#SET(CMAKE_BUILD_TYPE Debug)

install(TARGETS test_EXE
RUNTIME DESTINATION bin
)

target_link_libraries(test_EXE rt)
